package com.jingyanzi.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jingyanzi.marketing.domain.PresentExchangeDo;
import com.jingyanzi.marketing.service.IPresentExchangeService;
import com.jingyanzi.marketing.service.IPresentService;

@RestController
@RequestMapping("/api")
public class PresentExchangeClientImpl {
	
	@Autowired
	private IPresentExchangeService presentExchangeService;

	@GetMapping("/present")
	public void add(@RequestBody PresentExchangeDo presentExchangeDo) {
		presentExchangeService.add(presentExchangeDo);
	}
}
